package com.basic.business.mat.domain;

import com.basic.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import com.basic.common.utils.StringUtils;
import com.basic.common.utils.uuid.ULID;

/**
 * 材质管理对象 t_mat_mgmt
 *
 * @author zhaoxy_jn@163.com
 * @date 2025-02-11
 */
@Getter
@Setter
@ExcelIgnoreUnannotated
public class TMatMgmt extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 材质编码 */
    @ExcelProperty(value = "材质编码")
    private String matCode;

    /** 材质名称 */
    @ExcelProperty(value = "材质名称")
    private String matName;

    public void setMatCode(String matCode) {
        this.matCode = matCode != null ? matCode.trim() : null;
    }

    public void setMatName(String matName) {
        this.matName = matName != null ? matName.trim() : null;
    }

    /** 状态 正常：NORMAL 删除：DELETED */
    private String matStatus;

    public void setId(String id) {
        this.id = StringUtils.isNotEmpty(id) ? id : ULID.getId();
    }
}
